/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package digitaldreamers.games.ddmonsters.servers.gameserver.network.packets.sending;

import digitaldreamers.libraries.games.servers.networkmanagement.packets.sending.AbSendablePacket;
import digitaldreamers.games.ddmonsters.servers.gameserver.configurations.Configuration;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 *
 * @author DaoLe
 */
public class STurnChangedPacket extends AbSendablePacket {
    
    private boolean m_bIsYourTurn;
    
    public STurnChangedPacket(boolean bIsYourTurn) {
        m_bIsYourTurn = bIsYourTurn;
        mPacketId = Configuration.TURN_CHANGED_PACKET_ID;
    }
    
    @Override
    public void writeData(DataOutputStream DOS) throws IOException {
        DOS.writeInt(mPacketId);
        DOS.writeBoolean(m_bIsYourTurn);
    }
}
